Skip to content

Conversation

@VitaliiBedletskyi
Copy link
Contributor

@VitaliiBedletskyi VitaliiBedletskyi commented Mar 20, 2025

Content

  • Enable type check on pre-push git hook
  • Added more strict eslint rule to restrict using @return {object} or @return {any} and some other ambiguous types
  • Aligned existing code-base with all eslint rules

...

Additional details

Please pay attention
The new custom Eslint rule highlights the JSDoc comment with an invalid type in the @return tag (not on the exact line, because then it is difficult to add this rule to ignore).
image
To ignore this rule due to some exceptional reason you have to add the next ignore statement just before JSDoc comment:
image
...

@sonarqubecloud
Copy link

@taras-dubyk taras-dubyk merged commit 82cc4b0 into feature/re Mar 21, 2025
2 checks passed
@taras-dubyk taras-dubyk deleted the feature/strict-types-check branch March 21, 2025 10:53
taras-dubyk added a commit that referenced this pull request Apr 4, 2025
* HCK-10099: RE init (#85)

* re from file init

* fix linter

* Added base logic for RE from GraphQL server (#87)

* add entry point for RE from GraphQL server

* reformat package.json

* update title

* fix sonarlint remark

* HCK-10206: add directives RE (#86)

* add directives RE

* add tests for directives definitions mapping

* add tests for directives usage

* fix remarks

* HCK-10331: add custom scalars RE (#89)

* add custom scalars RE

* fix mapping directive argument value

* update tests

* add custom scalars RE tests

* add directive prefix

* fix package of plugin (#90)

* Enabled strict JSDoc usage and type highlights (#91)

* move types to centralized place and add prettier and eslint for them

* add type check using typescript

* disable multiline JSDoc

* align types and eslint with latest changes

* update unit test

* delete duplicated file

* Add strict types check (#92)

* align types and fix all type related issues

* enable types validation on pre-push git hook

* add custom rule to restrict ambiguous types in @return tag

* align types with more strict rules

* remove redundant type

* reconcile type names

* reconcile some RE types

* fix name of parameters in enum mapper

* HCK-10332: RE Enum types (#93)

* implement parsing of Enum types

* add unit tests

* add prettier for TS files

* remove console.log

* HCK-10333: add object type definitions RE (#94)

* add object types RE

* update types

* add field mapper tests

* add object type tests

* move field mapper test for consistent files structure

* update types

* update types

* add RE of interfaces (#95)

* HCK-10335: add RE of input types definitions (#96)

* add input types RE

* fix linter warning

* fix types

* add root types RE (#98)

* HCK-10473: add arguments mapping for RE (#99)

* add arguments mapping for RE

* add arguments mapping tests

* add unions RE (#97)

* Fix running unit tests with node22 (#101)

* add schema validation during RE (#102)

* HCK-10653: fix fallback type name (#103)

* fix fallback type name

* update test

* HCK-10661: Improve error handling for RE from file (#104)

* improve error handling

* refactor

* HCK-10657: finalize RE from instance (#105)

* HCK-10657: finalize RE from instance

* fix progress messages

* remove type import

* fix type

* fix types

---------

Co-authored-by: Vitalii Bedletskyi <70570504+VitaliiBedletskyi@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants